<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{saleConditionTypeBean.id}"/>
		<f:event type="preRenderView" listener="#{saleConditionTypeBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sale Condition Type"/>

	<ui:define name="header">
		Sale Condition Type
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty saleConditionTypeBean.id}">
				Edit existing Sale Condition Type
			</c:when>
			<c:otherwise>
				Create a new Sale Condition Type
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeSaleContTypeCode" value="Sale Cont Type Code:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeSaleContTypeCode" maxLength="5" required="true" value="#{saleConditionTypeBean.saleConditionType.saleContTypeCode}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeSaleContTypeCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeSaleContTypeDescr" value="Sale Cont Type Descr:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeSaleContTypeDescr" maxLength="100" value="#{saleConditionTypeBean.saleConditionType.saleContTypeDescr}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeSaleContTypeDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeVehicleTypeNo" value="Vehicle Type No:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeVehicleTypeNo" value="#{saleConditionTypeBean.saleConditionType.vehicleTypeNo}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeVehicleTypeNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeInterestRate" value="Interest Rate:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeInterestRate" value="#{saleConditionTypeBean.saleConditionType.interestRate}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeInterestRate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee01CalcType" value="Loan Fee 01Calc Type:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee01CalcType" value="#{saleConditionTypeBean.saleConditionType.loanFee01CalcType}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee01CalcType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee01Perc" value="Loan Fee 01Perc:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee01Perc" value="#{saleConditionTypeBean.saleConditionType.loanFee01Perc}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee01Perc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee01ValMin" value="Loan Fee 01Val Min:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee01ValMin" value="#{saleConditionTypeBean.saleConditionType.loanFee01ValMin}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee01ValMin" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee01ValMax" value="Loan Fee 01Val Max:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee01ValMax" value="#{saleConditionTypeBean.saleConditionType.loanFee01ValMax}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee01ValMax" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanValMin" value="Loan Val Min:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanValMin" value="#{saleConditionTypeBean.saleConditionType.loanValMin}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanValMin" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanValMax" value="Loan Val Max:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanValMax" value="#{saleConditionTypeBean.saleConditionType.loanValMax}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanValMax" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeAssetLifeMinYear" value="Asset Life Min Year:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeAssetLifeMinYear" value="#{saleConditionTypeBean.saleConditionType.assetLifeMinYear}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeAssetLifeMinYear" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeAssetLifeMaxYear" value="Asset Life Max Year:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeAssetLifeMaxYear" value="#{saleConditionTypeBean.saleConditionType.assetLifeMaxYear}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeAssetLifeMaxYear" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeInstallmentMin" value="Installment Min:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeInstallmentMin" value="#{saleConditionTypeBean.saleConditionType.installmentMin}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeInstallmentMin" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFeeCalcType" value="Loan Fee Calc Type:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFeeCalcType" value="#{saleConditionTypeBean.saleConditionType.loanFeeCalcType}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFeeCalcType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFeePerc" value="Loan Fee Perc:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFeePerc" value="#{saleConditionTypeBean.saleConditionType.loanFeePerc}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFeePerc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFeeVal" value="Loan Fee Val:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFeeVal" value="#{saleConditionTypeBean.saleConditionType.loanFeeVal}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFeeVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee02CalcType" value="Loan Fee 02Calc Type:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee02CalcType" value="#{saleConditionTypeBean.saleConditionType.loanFee02CalcType}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee02CalcType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee02Perc" value="Loan Fee 02Perc:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee02Perc" value="#{saleConditionTypeBean.saleConditionType.loanFee02Perc}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee02Perc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee02ValMin" value="Loan Fee 02Val Min:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee02ValMin" value="#{saleConditionTypeBean.saleConditionType.loanFee02ValMin}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee02ValMin" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee02ValMax" value="Loan Fee 02Val Max:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee02ValMax" value="#{saleConditionTypeBean.saleConditionType.loanFee02ValMax}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee02ValMax" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee03CalcType" value="Loan Fee 03Calc Type:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee03CalcType" value="#{saleConditionTypeBean.saleConditionType.loanFee03CalcType}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee03CalcType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee03Perc" value="Loan Fee 03Perc:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee03Perc" value="#{saleConditionTypeBean.saleConditionType.loanFee03Perc}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee03Perc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee03ValMin" value="Loan Fee 03Val Min:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee03ValMin" value="#{saleConditionTypeBean.saleConditionType.loanFee03ValMin}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee03ValMin" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee03ValMax" value="Loan Fee 03Val Max:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee03ValMax" value="#{saleConditionTypeBean.saleConditionType.loanFee03ValMax}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee03ValMax" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee04CalcType" value="Loan Fee 04Calc Type:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee04CalcType" value="#{saleConditionTypeBean.saleConditionType.loanFee04CalcType}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee04CalcType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee04Perc" value="Loan Fee 04Perc:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee04Perc" value="#{saleConditionTypeBean.saleConditionType.loanFee04Perc}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee04Perc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee04ValMin" value="Loan Fee 04Val Min:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee04ValMin" value="#{saleConditionTypeBean.saleConditionType.loanFee04ValMin}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee04ValMin" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee04ValMax" value="Loan Fee 04Val Max:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee04ValMax" value="#{saleConditionTypeBean.saleConditionType.loanFee04ValMax}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee04ValMax" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee05CalcType" value="Loan Fee 05Calc Type:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee05CalcType" value="#{saleConditionTypeBean.saleConditionType.loanFee05CalcType}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee05CalcType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee05Perc" value="Loan Fee 05Perc:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee05Perc" value="#{saleConditionTypeBean.saleConditionType.loanFee05Perc}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee05Perc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee05ValMin" value="Loan Fee 05Val Min:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee05ValMin" value="#{saleConditionTypeBean.saleConditionType.loanFee05ValMin}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee05ValMin" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeLoanFee05ValMax" value="Loan Fee 05Val Max:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeLoanFee05ValMax" value="#{saleConditionTypeBean.saleConditionType.loanFee05ValMax}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeLoanFee05ValMax" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeCcInterestRateDiscVal" value="Cc Interest Rate Disc Val:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeCcInterestRateDiscVal" value="#{saleConditionTypeBean.saleConditionType.ccInterestRateDiscVal}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeCcInterestRateDiscVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeCcInterestRateDiscPerc" value="Cc Interest Rate Disc Perc:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeCcInterestRateDiscPerc" value="#{saleConditionTypeBean.saleConditionType.ccInterestRateDiscPerc}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeCcInterestRateDiscPerc" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeStatusIsActive" value="Status Is Active:"/>
				<h:panelGroup>
					<h:inputText id="saleConditionTypeBeanSaleConditionTypeStatusIsActive" value="#{saleConditionTypeBean.saleConditionType.statusIsActive}"/>
					<h:message for="saleConditionTypeBeanSaleConditionTypeStatusIsActive" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeOrgAllows" value="Sale Condition Type Org Allows:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{saleConditionTypeBean.saleConditionType.saleConditionTypeOrgAllows}"/>
					<h:dataTable id="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeOrgAllows" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Status Is Auto Extend Allow End Dtm"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeOrgAllow/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemStatusIsAutoExtendAllowEndDtm" value="#{_item.statusIsAutoExtendAllowEndDtm}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeOrgAllowBeanAddStatusIsAutoExtendAllowEndDtm" value="#{saleConditionTypeOrgAllowBean.add.statusIsAutoExtendAllowEndDtm}"/>
								<h:message for="saleConditionTypeOrgAllowBeanAddStatusIsAutoExtendAllowEndDtm" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(saleConditionTypeOrgAllowBean.added)}" id="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeOrgAllowsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{saleConditionTypeOrgAllowBean.add.saleConditionType}" value="#{saleConditionTypeBean.saleConditionType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeSaleLoanOffers" value="Sale Loan Offers:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{saleConditionTypeBean.saleConditionType.saleLoanOffers}"/>
					<h:dataTable id="saleConditionTypeBeanSaleConditionTypeSaleLoanOffers" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rec No"/>
							</f:facet>
							<h:link outcome="/form/saleLoanOffer/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="itemRecNo" value="#{_item.recNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleLoanOfferBeanAddRecNo" value="#{saleLoanOfferBean.add.recNo}"/>
								<h:message for="saleLoanOfferBeanAddRecNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Loan Type No"/>
							</f:facet>
							<h:link outcome="/form/saleLoanOffer/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="itemLoanTypeNo" value="#{_item.loanTypeNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleLoanOfferBeanAddLoanTypeNo" value="#{saleLoanOfferBean.add.loanTypeNo}"/>
								<h:message for="saleLoanOfferBeanAddLoanTypeNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(saleLoanOfferBean.added)}" id="saleConditionTypeBeanSaleConditionTypeSaleLoanOffersAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{saleLoanOfferBean.add.saleConditionType}" value="#{saleConditionTypeBean.saleConditionType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeLoanTerms" value="Sale Condition Type Loan Terms:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{saleConditionTypeBean.saleConditionType.saleConditionTypeLoanTerms}"/>
					<h:dataTable id="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeLoanTerms" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Loan Term Min Val"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeLoanTerm/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemLoanTermMinVal" value="#{_item.loanTermMinVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeLoanTermBeanAddLoanTermMinVal" value="#{saleConditionTypeLoanTermBean.add.loanTermMinVal}"/>
								<h:message for="saleConditionTypeLoanTermBeanAddLoanTermMinVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Loan Term Max Val"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeLoanTerm/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemLoanTermMaxVal" value="#{_item.loanTermMaxVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeLoanTermBeanAddLoanTermMaxVal" value="#{saleConditionTypeLoanTermBean.add.loanTermMaxVal}"/>
								<h:message for="saleConditionTypeLoanTermBeanAddLoanTermMaxVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Loan Term Val"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeLoanTerm/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemLoanTermVal" value="#{_item.loanTermVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeLoanTermBeanAddLoanTermVal" value="#{saleConditionTypeLoanTermBean.add.loanTermVal}"/>
								<h:message for="saleConditionTypeLoanTermBeanAddLoanTermVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Loan Term Val Type No"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeLoanTerm/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemLoanTermValTypeNo" value="#{_item.loanTermValTypeNo}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeLoanTermBeanAddLoanTermValTypeNo" value="#{saleConditionTypeLoanTermBean.add.loanTermValTypeNo}"/>
								<h:message for="saleConditionTypeLoanTermBeanAddLoanTermValTypeNo" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(saleConditionTypeLoanTermBean.added)}" id="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeLoanTermsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{saleConditionTypeLoanTermBean.add.saleConditionType}" value="#{saleConditionTypeBean.saleConditionType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeSaleLoanContracts" value="Sale Loan Contracts:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{saleConditionTypeBean.saleConditionType.saleLoanContracts}"/>
					<h:dataTable id="saleConditionTypeBeanSaleConditionTypeSaleLoanContracts" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Hr Emp"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemHrEmp" value="#{forgeview:display(_item.hrEmp)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{hrEmpBean.converter}" id="saleLoanContractBeanAddHrEmp" value="#{saleLoanContractBean.add.hrEmp}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{hrEmpBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddHrEmp" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Cust"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSysCust" value="#{forgeview:display(_item.sysCust)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysCustBean.converter}" id="saleLoanContractBeanAddSysCust" value="#{saleLoanContractBean.add.sysCust}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysCustBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSysCust" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Vehicle Brand"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSysVehicleBrand" value="#{forgeview:display(_item.sysVehicleBrand)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysVehicleBrandBean.converter}" id="saleLoanContractBeanAddSysVehicleBrand" value="#{saleLoanContractBean.add.sysVehicleBrand}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysVehicleBrandBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSysVehicleBrand" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sale Loan Grade"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSaleLoanGrade" value="#{forgeview:display(_item.saleLoanGrade)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{saleLoanGradeBean.converter}" id="saleLoanContractBeanAddSaleLoanGrade" value="#{saleLoanContractBean.add.saleLoanGrade}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{saleLoanGradeBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSaleLoanGrade" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Sys Org"/>
							</f:facet>
							<h:link outcome="/form/saleLoanContract/view">
								<f:param name="id" value="#{_item.recNo}"/>
								<h:outputText id="forgeviewdisplayitemSysOrg" value="#{forgeview:display(_item.sysOrg)}"/>
							</h:link>
							<f:facet name="footer">
								<h:selectOneMenu converter="#{sysOrgBean.converter}" id="saleLoanContractBeanAddSysOrg" value="#{saleLoanContractBean.add.sysOrg}">
									<f:selectItem/>
									<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysOrgBean.all}" var="_item"/>
								</h:selectOneMenu>
								<h:message for="saleLoanContractBeanAddSysOrg" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(saleLoanContractBean.added)}" id="saleConditionTypeBeanSaleConditionTypeSaleLoanContractsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{saleLoanContractBean.add.saleConditionType}" value="#{saleConditionTypeBean.saleConditionType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeCcRates" value="Sale Condition Type Cc Rates:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{saleConditionTypeBean.saleConditionType.saleConditionTypeCcRates}"/>
					<h:dataTable id="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeCcRates" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cc Interest Rate Disc Calc Type"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeCcRate/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCcInterestRateDiscCalcType" value="#{_item.ccInterestRateDiscCalcType}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeCcRateBeanAddCcInterestRateDiscCalcType" value="#{saleConditionTypeCcRateBean.add.ccInterestRateDiscCalcType}"/>
								<h:message for="saleConditionTypeCcRateBeanAddCcInterestRateDiscCalcType" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cc Interest Rate Disc Val"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeCcRate/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCcInterestRateDiscVal" value="#{_item.ccInterestRateDiscVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeCcRateBeanAddCcInterestRateDiscVal" value="#{saleConditionTypeCcRateBean.add.ccInterestRateDiscVal}"/>
								<h:message for="saleConditionTypeCcRateBeanAddCcInterestRateDiscVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Cc Interest Rate Disc Perc"/>
							</f:facet>
							<h:link outcome="/form/saleConditionTypeCcRate/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemCcInterestRateDiscPerc" value="#{_item.ccInterestRateDiscPerc}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="saleConditionTypeCcRateBeanAddCcInterestRateDiscPerc" value="#{saleConditionTypeCcRateBean.add.ccInterestRateDiscPerc}"/>
								<h:message for="saleConditionTypeCcRateBeanAddCcInterestRateDiscPerc" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(saleConditionTypeCcRateBean.added)}" id="saleConditionTypeBeanSaleConditionTypeSaleConditionTypeCcRatesAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{saleConditionTypeCcRateBean.add.saleConditionType}" value="#{saleConditionTypeBean.saleConditionType}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{saleConditionTypeBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty saleConditionTypeBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{saleConditionTypeBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{saleConditionTypeBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>